﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for SortObjectsSalary
/// </summary>
public class SortObjectsSalary : IComparer<SalaryLevel>
{
    public int Compare(SalaryLevel salary1, SalaryLevel salary2)
    {
        return (salary1.SaLevID < salary2.SaLevID) ? 1 : ((salary1.SaLevID > salary2.SaLevID) ? -1 : 0);
    }
}